#!/bin/bash
echo "Client Clear start..."

echo "Client Clear start: android bundle"
/usr/bin/python3 /app/client-ftp-clear/py/removeOldVersionBundle.py /app/www/unity/cdn/android/online
/usr/bin/python3 /app/client-ftp-clear/py/removeOldVersionBundle.py /app/www/unity/cdn/android/confirm
/usr/bin/python3 /app/client-ftp-clear/py/removeOldVersionBundle.py /app/www/unity/cdn/android/audit
/usr/bin/python3 /app/client-ftp-clear/py/removeOldVersionBundle.py /app/www/unity/cdn/android/test

/usr/bin/python3 /app/client-ftp-clear/py/removeOldVersionBundle.py /app/www/unity/cdn/iOS/online
/usr/bin/python3 /app/client-ftp-clear/py/removeOldVersionBundle.py /app/www/unity/cdn/iOS/confirm
/usr/bin/python3 /app/client-ftp-clear/py/removeOldVersionBundle.py /app/www/unity/cdn/iOS/audit
/usr/bin/python3 /app/client-ftp-clear/py/removeOldVersionBundle.py /app/www/unity/cdn/iOS/test

echo "Client Clear start: android apk"
/usr/bin/python3 /app/client-ftp-clear/py/removeOldVersionApk.py /app/www/unity/app/android/online
/usr/bin/python3 /app/client-ftp-clear/py/removeOldVersionApk.py /app/www/unity/app/android/confirm
/usr/bin/python3 /app/client-ftp-clear/py/removeOldVersionApk.py /app/www/unity/app/android/audit
/usr/bin/python3 /app/client-ftp-clear/py/removeOldVersionApk.py /app/www/unity/app/android/test

/usr/bin/python3 /app/client-ftp-clear/py/removeOldVersionApk.py /app/www/unity/area1/app/android/
/usr/bin/python3 /app/client-ftp-clear/py/removeOldVersionApk.py /app/www/unity/area2/app/android/

/usr/bin/python3 /app/client-ftp-clear/py/removeOldVersionIpa.py /app/www/unity/area1/app/iOS/
/usr/bin/python3 /app/client-ftp-clear/py/removeOldVersionIpa.py /app/www/unity/area2/app/iOS/


/usr/bin/python3 /app/client-ftp-clear/py/removeOldVersionApk.py /app/www/unity/app_war3d/android/online
/usr/bin/python3 /app/client-ftp-clear/py/removeOldVersionApk.py /app/www/unity/app_war3d/android/confirm
/usr/bin/python3 /app/client-ftp-clear/py/removeOldVersionApk.py /app/www/unity/app_war3d/android/audit
/usr/bin/python3 /app/client-ftp-clear/py/removeOldVersionApk.py /app/www/unity/app_war3d/android/test

/usr/bin/python3 /app/client-ftp-clear/py/removeOldVersionBundle.py /app/www/cocos2d/fish_client_new/android/app_yuqi 

rm -rf /app/www/cocos2d/fish_client_new/kangmimi
rm -rf /app/www/cocos2d/fish_client_new/wanghongwei
rm -rf /app/www/cocos2d/fish_client_new/lipengpeng
rm -rf /app/www/cocos2d/fish_client_new/wangshan
rm -rf /app/www/cocos2d/fish_client_new/xuguangqi

rm -rf /app/www/cocos2d/fish_client_happy/kangmimi
rm -rf /app/www/cocos2d/fish_client_happy/wanghongwei
rm -rf /app/www/cocos2d/fish_client_happy/lipengpeng
rm -rf /app/www/cocos2d/fish_client_happy/wangshan
rm -rf /app/www/cocos2d/fish_client_happy/xuguangqi
echo "Client Clear end..."

/usr/local/bin/pm2 restart 17
